/*

  i2s.h - driver code for Espressif ESP32 processor

  "hack" defines for Michiyasu Odakis I2S stepper implementation for ESP32

  Part of GrblHAL

  Copyright (c) 2020 Terje Io

  Grbl is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  Grbl is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with Grbl.  If not, see <http://www.gnu.org/licenses/>.

*/

#define LOW 0
#define HIGH 1
#define __digitalWrite(pin, state) gpio_set_level(pin, (state))
#define delay(ms) hal.delay_ms(ms, 0);
#define nullptr 0
#define CONFIG_ARDUINO_RUNNING_CORE 1
#define F_STEPPER_TIMER hal.f_step_timer
